#/bin/bash


for i in `find your-image-dir-path -type f`
do
	res=$(file $i | grep "image data")
	if [[ "$res" == "" ]]
	then
		file $i
    	echo "$i is not image"
		rm -rf $i
	fi
done

